<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        main {
            width: 100%;
        }

        h2.title {
            color: white;
            margin-top: 1rem;
            margin-bottom: 1rem;
        }

        header {
            background: #b4a078;
            color: white;
        }

        footer {
            background: rgba(180, 160, 120, .05);
        }

        .main>header,
        .main>section,
        .main>footer {
            padding: .1rem calc(50% - 450px);
        }
    </style>
</head>

<body>
    <main class="main">
        <header>
            <h2 class="title">我是文章标题</h2>
        </header>
        <section>
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sint inventore earum voluptatum quia atque placeat cumque ducimus ipsum esse magni! Hic velit veritatis quae quisquam facilis reprehenderit consectetur eligendi quasi? Error architecto nostrum sint explicabo. Culpa, ipsam eius quam, autem officia odio facilis doloribus et qui alias in quos iste.</p>
        </section>
        <footer>
            <p>&copy; 2021 MXZYEDU</p>
            <p>CSS Tricks need to know for web developer.</p>
        </footer>
    </main>
</body>

</html>